package com.cy.网络编程.tcp.test2;

import java.net.Socket;

/**
 * 实现可以发多条消息的客户端
 */
public class Client {
    public static void main(String[] args) throws Exception {
        Socket socket = new Socket("localhost",9898);

        //接受消息的线程
        ReceThread t1 = new ReceThread(socket);
        t1.start();
        //发送消息的线程
        SendThread t2 = new SendThread(socket);
        t2.start();

    }
}
